import request from '@/utils/request'

export const loginService = (data   ) => {
    return request.post('/loginManager/login',data)
}

export const registerService = (data   ) => {
    return request.post('/loginManager/register',data)
}

export const emailCodeService = (data   ) => {
    return request.post('/loginManager/emailCode',data)
}

export const resPasswordService = (data   ) => {
    return request.post('/loginManager/resPassword',data)
}

export const getCourseListService = (data   ) => {
    return request.post('/loginManager/getCourseList',data)
}

export const selectSysMsgService = (data   ) => {
    return request.post('/loginManager/selectSysMsg',data)
}

export const getHotCourseListService = (data   ) => {
    return request.post('/loginManager/getHotCourseList',data)
}

export const getCourseDetailService = (params   ) => {
    return request.get('/loginManager/getCourseDetail',{
        params
    })
}

export const getExamDetailService = (params   ) => {
    return request.get('/loginManager/getExamDetail',{
        params
    })
}

export const subExamDetailService = (data   ) => {
    return request.post('/loginManager/subExamDetail',data)
}

export const getExamIdByUserIdService = (params   ) => {
    return request.get('/loginManager/getExamIdByUserId',{
        params
    })
}


export const saveHomeWorkSer = (data   ) => {
    return request.post('/loginManager/saveHomeWork',data)
}

export const getExamResService = (params) => {
    return request.get('/loginManager/getExamRes',{
        params
    })
}
